package cn.com.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 部门
 *
 * @author wenbin
 * @version V1.0
 * @date 2020年3月18日
 */
@Data
@TableName("sys_dept")
public class SysDept implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@TableId
    private String id;

    private String deptNo;

    @NotBlank(message = "机构名称不能为空")
    private String name;

    @NotBlank(message = "父级不能为空")
    private String pid;

    @TableField(exist = false)
    private String pidName;

    private Integer status;

    private String relationCode;

    private String deptManagerId;

    private String managerName;

    private String phone;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Integer deleted;
    
    
	@TableField(exist = false)
	private String createTimeEnd;
	@TableField(exist = false)
	private String createTimeStart;
	
	@TableField(exist = false)
	private String averageSale;
	@TableField(exist = false)
	private String averageUpSale;
	@TableField(exist = false)
	private String ratioRingSale;
	
	@TableField(exist = false)
	private String averageSaleAmount;
	@TableField(exist = false)
	private String averageUpSaleAsAmount;
	@TableField(exist = false)
	private String ratioRingSaleAmount;
	
	@TableField(exist = false)
	private String yearMonths;
	
	
	@TableField(exist = false)
	private String amountGasoline;
	@TableField(exist = false)
	private String amountDiesel;
	@TableField(exist = false)
	private String amountPrivate;
	@TableField(exist = false)
	private String amountPublic;
	@TableField(exist = false)
	private String saleGasoline;
	@TableField(exist = false)
	private String saleDiesel;
	@TableField(exist = false)
	private String salePrivate;
	@TableField(exist = false)
	private String salePublic;
	
	@TableField(exist = false)
	private String numberPrivate;
	@TableField(exist = false)
	private String numberPublic;
	
	@TableField(exist = false)
	private String sale;
	@TableField(exist = false)
	private String amount;
	@TableField(exist = false)
	private String number;
	
	@TableField(exist = false)
	private String forecastValue;
	@TableField(exist = false)
	private String gatherValue;
	
}